<!DOCTYPE html>
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
<title>manager</title>
<link rel="stylesheet" type="text/css" href="styles/common.css">
</head>
<body>
	<div class="nav" id="">
		<a class="navactive" href="#">用户管理</a>
		<a href="bookmanager">图书管理</a>
		<p>管理员</p>
	</div>
	<form class="search" method="get" action="">
    	<input type="text" name="username">
    	<input type="submit" value="search">
  	</form>

	<table class="tab" id="">
		<tbody>
  			<tr>
    	 		<th>学号</th>
     	 		<th>用户名</th>
     	 		<th>用户状态</th>
     	 		<th>操作</th>
    		</tr>
			@foreach($user as $value)
			<tr>
    			<td>{{$value['userid']}}</td>
		     	<td>{{$value['username']}}</td>
			    <td>@if($value['status'] == 1) 正常 @else 欠费 @endif</td>
			    <td>
					@if($value['status'] == 0)<a>解锁</a>@endif
					<a value="{{$value['userid']}}" class="delete">删除</a>
				</td>
   			</tr>
			@endforeach
		</tbody>
	</table>
</div>
</body>
<script src="script/jquery-3.1.1.min.js"></script>
<script src="script/manager.js"></script>
</html>